<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="java.net.InetAddress"%>
<%@page import="com.cnhis.cloudhealth.commons.utils.PropDynamicCfg"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<c:set var="ctx_num" value="${pageContext.request.contextPath}/one" />
<!DOCTYPE HTML>
<html>
<head>
<script src="${ctx}/js.base/jquery-1.11.3.js"></script>
<!--replaceAll函数定义 -->
</head>
<body></body>

<script language="javascript" type="text/javascript">

//门诊医生
var  ipAdress="http://<%=request.getServerName()%>";
var  rootUrl=ipAdress+":<%=request.getServerPort()%><%=request.getContextPath()%>/cloud";
var  myurl=ipAdress+":<%=request.getServerPort()%><%=request.getContextPath()%>/one";
var  hosturl=ipAdress+":<%=request.getServerPort()%><%=request.getContextPath()%>";

//控制中心
var centerRUI1="<%=PropDynamicCfg.get("centerurl")%>";
var centerRUI= centerRUI1+"/cloud";
var  kzzxUrl = centerRUI;
var logoutUrl = centerRUI;


//消息推送
var mqUrl="<%=PropDynamicCfg.get("mqUrl")%>";//消息推送

//查询排班信息的URL
var paibanUrl = "<%=PropDynamicCfg.get("paibanUrl")%>";

//云crm系统中维护的医院id
var org_id = "<%=PropDynamicCfg.get("org_id")%>";

//格式化日期
Date.prototype.Format = function(fmt)   
{ 
  var o = {   
    "M+" : this.getMonth()+1,                 //月份   
    "d+" : this.getDate(),                    //日   
    "h+" : this.getHours(),                   //小时   
    "m+" : this.getMinutes(),                 //分   
    "s+" : this.getSeconds(),                 //秒   
    "q+" : Math.floor((this.getMonth()+3)/3), //季度   
    "S"  : this.getMilliseconds()             //毫秒   
  };   
  if(/(y+)/.test(fmt))   
    fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));   
  for(var k in o)   
    if(new RegExp("("+ k +")").test(fmt))   
  fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));   
  return fmt;   
} 

</script>